package indzcraft.ui;

import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;

public class SettingsListener implements PropertyChangeListener {
	
	private IndzCraftUI icui;

	public SettingsListener(IndzCraftUI ui){
		this.icui = ui;
	}
	
	@Override
	public void propertyChange(PropertyChangeEvent e) {
		System.out.printf( "Property '%s': '%s' -> '%s'%n", e.getPropertyName(), e.getOldValue(), e.getNewValue() );
		icui.showStats();
	}

}
